#!/bin/bash
if ! command -v lspci >/dev/null 2>&1; then
    echo lcpci not installed
    exit 1
fi
count=$(lspci | grep NVIDIA | grep --invert-match --ignore-case --count audio)
echo "{ \"count\": $count }"
